package com.lingyuan.warehouse.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingyuan.common.core.domain.vo.wms.WmsPurchaseDetailVO;
import com.lingyuan.common.core.domain.warehouse.pojo.PO.WmsPurchaseDetail;
import com.lingyuan.warehouse.domain.WmsPurchase;
import com.lingyuan.warehouse.domain.WmsWarePO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：寇可往，我亦可往。
 * @Package：com.lingyuan.warehouse.mapper
 * @Project：lingyuan-shopping-mall
 * @name：WmsPurchaseDetailMapper
 * @Date：2024/9/19 21:19
 */
public interface WmsPurchaseDetailMapper extends BaseMapper<WmsPurchaseDetail> {
    void insertAdd(@Param ( "purchase" ) List<WmsPurchaseDetail> wmsPurchaseDetail);

    void purchaseAdd( @Param ( "purchase" ) WmsPurchase purchase);

    void purchaseUpdate(@Param("purchase")WmsPurchase purchase);

    void WmsPurchaseUpdate(@Param ( "list" ) List<WmsPurchaseDetail> wmsPurchaseDetail);

    void updateId(WmsPurchase wmsPurchaseDetail);

    List<WmsPurchase> getPuchaseList(WmsPurchaseDetailVO wmsPurchaseDetailVO);

    WmsWarePO wmsWareName(String skuName);

    void updateSkuId(@Param ( "skuName" ) Long skuNum,@Param("id") Long id);

    void updateSkuIdUp(@Param ( "skuName" ) Long skuNum,@Param("id") Long id);

    void wasreAdd(WmsPurchase wmsPurchaseDetail);

    void updateIdUp(Long id);

    void mergePurchase(@Param ( "list" ) List<WmsPurchaseDetailVO> wmsPurchaseDetailVO);
}
